package com.efast.dmom.mes.entity;

import java.time.LocalDateTime;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.efast.dmom.mes.entity.base.WmsBaseEntity;


/**
 * The persistent class for the wms_allocation_order database table.
 * 
 */
@Entity
@Table(name="wms_allocation_order")
@NamedQuery(name="WmsAllocationOrderEntity.findAll", query="SELECT w FROM WmsAllocationOrderEntity w")
public class WmsAllocationOrderEntity extends WmsBaseEntity {
	private static final long serialVersionUID = 1L;


	@Column(name="allocation_order_no")
	private String allocationOrderNo;

	@Column(name="allocation_quality")
	private double allocationQuality;

	public double getAllocationQuality() {
		return allocationQuality;
	}

	public void setAllocationQuality(double allocationQuality) {
		this.allocationQuality = allocationQuality;
	}

	@Column(name="allocation_type")
	private String allocationType;


	@Column(name="from_warehouse_id")
	private int fromWarehouseId;


	@Column(name="part_id")
	private int partId;


	@Column(name="row_status")
	private int rowStatus;

	@Column(name="to_warehouse_id")
	private int toWarehouseId;
	
	private LocalDateTime allocationTime;

	private String unit;
	
	private String allocationStatus;
	
	private double unitPrice;
	
	private double unitWeight;
	
	private double totalWeight;

	public WmsAllocationOrderEntity() {
	}

	public String getAllocationOrderNo() {
		return this.allocationOrderNo;
	}

	public void setAllocationOrderNo(String allocationOrderNo) {
		this.allocationOrderNo = allocationOrderNo;
	}


	public String getAllocationType() {
		return this.allocationType;
	}

	public void setAllocationType(String allocationType) {
		this.allocationType = allocationType;
	}



	public int getFromWarehouseId() {
		return this.fromWarehouseId;
	}

	public void setFromWarehouseId(int fromWarehouseId) {
		this.fromWarehouseId = fromWarehouseId;
	}


	public int getPartId() {
		return this.partId;
	}

	public void setPartId(int partId) {
		this.partId = partId;
	}

	public int getRowStatus() {
		return this.rowStatus;
	}

	public void setRowStatus(int rowStatus) {
		this.rowStatus = rowStatus;
	}

	public int getToWarehouseId() {
		return this.toWarehouseId;
	}

	public void setToWarehouseId(int toWarehouseId) {
		this.toWarehouseId = toWarehouseId;
	}

	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getAllocationStatus() {
		return allocationStatus;
	}

	public void setAllocationStatus(String allocationStatus) {
		this.allocationStatus = allocationStatus;
	}

	public LocalDateTime getAllocationTime() {
		return allocationTime;
	}

	public void setAllocationTime(LocalDateTime allocationTime) {
		this.allocationTime = allocationTime;
	}

	public double getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}

	public double getUnitWeight() {
		return unitWeight;
	}

	public void setUnitWeight(double unitWeight) {
		this.unitWeight = unitWeight;
	}

	public double getTotalWeight() {
		return totalWeight;
	}

	public void setTotalWeight(double totalWeight) {
		this.totalWeight = totalWeight;
	}

	
	
}